﻿using System;
using CodeSaude.Domain.Entities;
using CodeSaude.Domain.Interfaces.Repository;
using CodeSaude.Domain.Interfaces.Service;

namespace CodeSaude.Domain.Services
{
    public class ProntuarioService : BaseService<Prontuario>, IProntuarioService
    {

        private readonly IProntuarioRepository _prontuarioRepository;

        public ProntuarioService(IProntuarioRepository prontuarioRepository)
            : base(prontuarioRepository)
        {
            _prontuarioRepository = prontuarioRepository;
        }
        
        public void SaveChanges()
        {
            _prontuarioRepository.SaveChanges();
        }
    }
}
